using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class MyMath
{
    public static Vector2 BezierV2(float t,Vector2 start,Vector2 mid,Vector2 end)
    {
        var ab = Vector2.Lerp(start, mid, t);
        var bc = Vector2.Lerp(mid, end, t);
        return Vector2.Lerp(ab, bc, t);
    }
}
